{% load static %}

<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册与登录</title>
    <script src="{% static 'index.js' %}" async></script>
    <script src="{% static 'axios.main.js' %}" async></script>
    <link rel="stylesheet" type="text/css" href="{% static 'index.css' %}">
</head>
<body>
<div class="container right-panel-active">
    <!-- 注册 -->
    <div class="container__form container--signup">
        <form action="#" class="form" id="form1">
            <h2 class="form__title">注册</h2>
            <input type="text" name="username" placeholder="用户名" class="input"/>
            <input type="email" name="email" placeholder="邮箱" class="input"/>
            <input type="password" name="password" placeholder="密码" class="input"/>
            <button class="btn" type="button" onclick="signup()">注册</button>
        </form>
    </div>

    <!-- 登录 -->
    <div class="container__form container--signin">
        <form action="#" class="form" id="form2">
            <h2 class="form__title">登录</h2>
            <input type="text" name="username" placeholder="用户名" class="input"/>
            <input type="password" name="password" placeholder="密码" class="input"/>
            <a href="#" class="link">忘记密码？</a>
            <button class="btn" type="button" onclick="login()">登录</button>
        </form>
    </div>

    <!-- 覆盖层 -->
    <div class="container__overlay">
        <div class="overlay">
            <div class="overlay__panel overlay--left">
                <button class="btn" id="signIn">登录</button>
            </div>
            <div class="overlay__panel overlay--right">
                <button class="btn" id="signUp">注册</button>
            </div>
        </div>
    </div>
</div>
</body>
{#<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>#}
</html>
